
sub myMethod(optional name as string, optional lname as string)
	dim fullname as string

	//Word of caution: since varaibles are now static, you have to make sure
	//they have a valid value before using them. You have to initialize
	//variables as required.
	
	fullname = name & " " & lname
	msgbox("Fullname1: " & fullname)
end sub
sub Main()
	dim name as string,lname as string
	dim age as integer
	dim myMethodClone as symbol	

	name = "Jose"
	lname = "Cuevas"

	myMethodClone = getPointer(myMethod)
	myMethodClone.name = name
	myMethodClone.lname = lname

	myMethodClone()
	
	msgbox("Fullname2: " & myMethod.name & " " & myMethod.lname)	
	msgbox("Fullname3: " & myMethod.fullname)
	
	//Lets call it in a more traditional fashion
	myMethod("Joe","Cuevas")
	
	//Lets see what we mean with static variables
	myMethod()
end sub

